package com.mtz.dateobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author 煜赜
 * @date 2018/12/17 0017 上午 9:23
 */
@Data
@Entity
@DynamicUpdate
@DynamicInsert
public class KnowledgeType {

    /** 答案id **/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /** 答案描述 **/
    private String typeName;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Date updateTime;
}
